| Total Complexity | 2 |
| Total Lines | 18 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | import { PokemonBox } from './../../data/savefile-expanded/fragments/PokemonBox'; |
||
| 20 | |||
| 21 | @Component({ |
||
| 22 | selector: 'screen-root-daycare', |
||
| 23 | templateUrl: './root-daycare.component.pug', |
||
| 24 | styleUrls: ['./root-daycare.component.scss'], |
||
| 25 | }) |
||
| 26 | export class RootDaycareComponent { |
||
| 27 | |||
| 28 | constructor( |
||
| 29 | public fileService: SaveFileService, |
||
| 30 | ) { } |
||
| 31 | |||
| 32 | public dayCareUsedClick() { |
||
| 33 | const daycare = this.fileService.fileDataExpanded.daycare.dayCare; |
||
| 34 | if (daycare == null) |
||
| 35 | this.fileService.fileDataExpanded.daycare.dayCare = new PokemonBox() |
||
| 36 | else |
||
| 37 | this.fileService.fileDataExpanded.daycare.dayCare = null; |
||
| 38 | } |
||
| 40 |